package xyz.xtt.exchange.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Schema(name = "盲盒", description = "盲盒")
@RequestMapping("/api/exchange/blindBox")
@RestController
public class BlindBoxController {

//    @Autowired
//    private NftService nftService;
//
//    @Autowired
//    private ITblBlindBoxDetailService iTblBlindBoxDetailService;
//
//
//    // 获取盲盒列表 只区分firstType
//    @Operation(summary = "获取盲盒列表", description = "获取盲盒列表")
//    @GetMapping("/list")
//    public ApiResult<List<BlindBoxListVO>> getBlindBoxList(@RequestHeader("uid") String uid,
//                                                           @RequestParam(value = "boxType", required = false, defaultValue = "60") int boxType,
//                                                           @RequestParam(value = "secondType", required = false, defaultValue = "0") int secondType,
//                                                           @RequestParam(value = "currPage", defaultValue = "1") Integer currPage,
//                                                           @RequestParam(value = "pageSize", defaultValue = "20") Integer pageSize){
//        List<BlindBoxListVO> blindBoxList = nftService.getBlindBoxList(uid, boxType,currPage,pageSize,secondType);
//        return ApiResult.ok(blindBoxList);
//    }
//
//    @Operation(summary = "获取用户大区列表", description = "获取用户大区列表")
//    @GetMapping("/getCompetitionArea")
//    public ApiResult<Map<Integer, String>> getCompetitionArea(){
//        Map<Integer, String> result = nftService.getCompetitionArea();
//        return ApiResult.ok(result);
//    }
//
//
//
//    // 获取盲盒列表 只区分firstType
//    @Operation(summary = "获取盲盒详情页", description = "获取盲盒详情页")
//    @GetMapping("/getDetailInfo")
//    public ApiResult<BlindBoxDetailVO> getBlindBoxDetailInfo(@RequestHeader("uid") String uid,
//                                                             @RequestParam(value = "goodsId") String goodsId){
//        BlindBoxDetailVO blindBoxDetailInfo = nftService.getBlindBoxDetailInfo(uid, goodsId);
//        return ApiResult.ok(blindBoxDetailInfo);
//    }
//
//    // 获取盲盒列表 只区分firstType
//    @Operation(summary = "增加盲盒详情信息", description = "增加盲盒详情信息")
//    @PostMapping("/addBlindBoxDetailInfo")
//    public ApiResult<BlindBoxDetailVO> addBlindBoxDetailInfo(@RequestHeader("uid") String uid,
//                                                             @RequestBody List<BlindBoxDetailParam> blindBoxDetailParam){
//        iTblBlindBoxDetailService.addBlindBoxDetailInfo(blindBoxDetailParam);
//        return ApiResult.ok();
//    }

}
